package com.xc.file;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@EnableFeignClients
@SpringBootApplication
@Controller
public class FileServerApplication {


    public static void main(String[] args) {
        SpringApplication.run(FileServerApplication.class, args);
    }


    /**
     * <p>功能描述: 根路径重定向 </p>
     * <p>更新人: 小程</p>
     * <p>更新描述: 添加方法</p>
     * <p>更新人邮箱: 779943476@qq.com</p>
     * <p>更新时间: 2019/7/2</p>
     *
     * @return 重定向地址
     */
    @RequestMapping("/")
    public String index() {
        return "redirect:index.html";
    }
}
